package org.csmz.class2333;

public class Example11 {
    public static void main(String[] args){
        int score = 84;
        String grade;
        switch (score/10){
            case 100:
            case 90:
                grade = "优秀";
                break;
            case 80:
                grade = "良好";
                break;
            case 70:
                grade = "中等";
                break;
            case 60:
                grade = "及格";
                break;
            default:
                grade = "不及格";
        }
    }

}
